package com.fqxiny.picture.common.utils;

import org.springframework.util.DigestUtils;

/**
 * @author : 戚欣扬
 * @code : 加密工具包
 */
public class EncryptUtil {
    public static String getEncryptPassword(String userPassword) {
        // 加盐，混淆密码
        final String SALT = "fqxiny";
        return DigestUtils.md5DigestAsHex((SALT + userPassword).getBytes());
    }
}


